import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/interact_user_task_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class InteractUserTaskListEntity {
	int? mid;
	@JSONField(name: "task_id")
	int? taskId;
	@JSONField(name: "task_name")
	String? taskName;
	int? state;
	@JSONField(name: "give_money")
	int? giveMoney;
	String? describe;

	InteractUserTaskListEntity();

	factory InteractUserTaskListEntity.fromJson(Map<String, dynamic> json) => $InteractUserTaskListEntityFromJson(json);

	Map<String, dynamic> toJson() => $InteractUserTaskListEntityToJson(this);

	InteractUserTaskListEntity copyWith({int? mid, int? taskId, String? taskName, int? state, int? giveMoney, String? describe}) {
		return InteractUserTaskListEntity()
			..mid= mid ?? this.mid
			..taskId= taskId ?? this.taskId
			..taskName= taskName ?? this.taskName
			..state= state ?? this.state
			..giveMoney= giveMoney ?? this.giveMoney
			..describe= describe ?? this.describe;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}